package cn.findviewbydream.evil.main.dto;

import cn.findviewbydream.evil.main.entity.CodeTypeEntity;

import java.io.Serializable;

/********************************************
 * 工程名：HebeuCS
 * 包名：cn.findviewbydream.evil.main.dto
 * 时间：16-11-5 下午1:18
 * 作者：白雨濃 evil
 * 邮箱：evilbai@foxmail.com
 * 内容：保存语言类型和该语言的帖子数
 ********************************************/
public class CodeTypeBean implements Serializable
{
    private CodeTypeEntity codeTypeEntity;
    private int num;

    public CodeTypeBean(CodeTypeEntity codeTypeEntity, int num)
    {
        this.codeTypeEntity = codeTypeEntity;
        this.num = num;
    }

    public CodeTypeEntity getCodeTypeEntity()
    {
        return codeTypeEntity;
    }

    public void setCodeTypeEntity(CodeTypeEntity codeTypeEntity)
    {
        this.codeTypeEntity = codeTypeEntity;
    }

    public int getNum()
    {
        return num;
    }

    public void setNum(int num)
    {
        this.num = num;
    }

    @Override
    public String toString()
    {
        return "CodeTypeBean{" +
                "codeTypeEntity=" + codeTypeEntity.toString() +
                ", num=" + num +
                '}';
    }
}
